xen/arm: Introduce wrappers for MFN <-> MADDR and GFN <-> GADDR
authorJulien Grall <julien.grall@arm.com>
Tue, 13 Jun 2017 16:13:13 +0000 (17:13 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 15 Jun 2017 23:54:52 +0000 (16:54 -0700)
commitb110455f4281d555f2f98393e805c4b45a3743a5
tree8f320eef26d8a02790c392c432cb0ccd4dd722e4
parent67c3ca7a7795f0ca31e3733ec6ae9716157e2726
xen/arm: Introduce wrappers for MFN <-> MADDR and GFN <-> GADDR

The new wrappers will add more safety when converting an address to a
frame number (either machine or guest). A follow-up patch will use them
to simplify the code.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/mm.h